package com.example.common;

/**
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/7/16
 */
public enum ResponseCode {

    SUCCESS("200","成功"),
    FAIL("500","系统异常,请联系管理员"),
    /************文件上传*********/
    UPLOAD_FILES_CANNOT_BE_EMPTY("400601","上传文件不能为空"),
    UPLOAD_FILE_TYPE_DOES_NOT_MATCH("400602","上传文件类型不符合要求"),
    FILE_CANNOT_BE_GREATER_THAN_MAXIMUM("400603","上传文件不能大于指定最大值"),
    FILE_CANNOT_BE_LESS_THAN_MINIMUM("400604","上传文件不能小于指定最小值"),
    UPLOAD_QINIU_FAILED("400605","上传文件失败，请核对七牛配置信息");

    /**
     * <h2>返回码</h2>
     */
    private String responseCode;

    /**
     * <h2>返回消息</h2>
     */
    private String responseMessage;

    /**
     * <h2>全局返回code码 有参构造类</h2>
     * @param responseCode            返回编号
     * @param responseMessage         返回消息
     */
    private ResponseCode(String responseCode, String responseMessage) {
        this.responseCode = responseCode;
        this.responseMessage = responseMessage;
    }


    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getResponseMessage() {
        return responseMessage;
    }

    public void setResponseMessage(String responseMessage) {
        this.responseMessage = responseMessage;
    }

}
